package com.xubeihong.xubeihong;

import com.alibaba.fastjson2.JSONObject;

public class JsonToStringExample {
    public static void main(String[] args) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("p", "w");
        jsonObject.put("Sign", "RootSign");
        jsonObject.put("active_time_id", "14158");
        jsonObject.put("contact_phone", "13291665940");
        jsonObject.put("alternate", "");
        jsonObject.put("toi_cardtype_id", 1);
        jsonObject.put("spot", 0);
        JSONObject personObject = new JSONObject();
        personObject.put("toi_cardtype_id", 1);
        personObject.put("toi_username", "郝堙柳");
        personObject.put("toi_card_num", "130481199211151096");
        jsonObject.put("person", new JSONObject[]{personObject});
        jsonObject.put("notes", "");
        jsonObject.put("children", new JSONObject[]{});
        jsonObject.put("toi_unit", "");
        jsonObject.put("uid", "P%3AhWT596H%2B3%2BICj%2BRVlOzsdA%3D%3D");
        jsonObject.put("_sign", new String[]{"ggNu2a8Ke2o/kIxAIxWBYC+skQKNjkK/mXgWfF+5tjw1pELTR4gOOEByQQf9LjymMfV6oqhRZ2cDBHw+1dWBDwFUMUlRDnWZgD9uGf9wNT0xNE588Bv2RPcq7TYEBOswdRm5CWJu3lqjdC+cZTyQmDbBXVS1JT8CJpuT+Rlb8JaEALGYY9V7Bejju7s9yMeFMH6qGiDwszi1YgJUYWqpSGgS0oC8JXdInC829QjeVMFkZw7mbi78opY0vLNV8jpbNuPDEe7sgl2kvaVggRNnWQOXV+grRdkfqbqAawZsPl5L9IAyyAW3pvNDiTcReh/J8tF9e0Q6wIzo87S/obHkpw=="});
        jsonObject.put("api_token", "efd69a911cb0df16522d0c9349273914");
        String jsonString = jsonObject.toJSONString();
        System.out.println(jsonString);
    }
}
